package com.campusbackend.entity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

/**
 * 教师个人主页更新VO
 */
@Data
@Schema(name = "TeacherHomepageUpdateVO", description = "教师个人主页更新VO")
public class TeacherHomepageUpdateVO {
    
    @Schema(description = "个人主页地址")
    @Pattern(regexp = "^(https?://)?[\\w\\-]+(\\.[\\w\\-]+)+([\\w\\-\\.,@?^=%&:/~\\+#]*[\\w\\-\\@?^=%&/~\\+#])?$", 
             message = "个人主页地址格式不正确", 
             flags = Pattern.Flag.CASE_INSENSITIVE)
    private String personalHomepage;
} 